import { HIDEMODEL, SHOWMODEL } from "../const/model.const"
let initialState = {showStatus: false }

export default (state = initialState, action) => {
    switch (action.type) {
        case SHOWMODEL:
            return {
                ...state,
                showStatus: true
            }
        case HIDEMODEL:
            return {
                ...state,
                showStatus: false
            }
        default:
            return state
    }
}